package com.indusfo.spc.mapper;

import com.indusfo.spc.common.pojo.Temporary;
import com.indusfo.spc.pojo.OfflineList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OfflineListMapper {

    //新增
    int insertOfflineList(OfflineList offlineList);

    //查询单个
    List<OfflineList> selectByPrimaryKey(OfflineList offlineList);

    //修改
    int updateByPrimaryKeySelective(OfflineList offlineList);

    //查询是否存在
    Integer selectOfflineList(OfflineList offlineList);

    //分页所有
    List<OfflineList> selectAll(OfflineList offlineList);

    //计数
    int countOfflineList(OfflineList offlineList);

    //删除 自身ID
    int delteOfflineList(@Param("offlineListIds") Long[] offlineListIds, @Param("dataState") Integer dataState);

    //批量新增
    int insertOfflineListAll(@Param("proIds") Long[] proIds, @Param("offlineId") Integer offlineId);

    // 查询指定offlineId
    List<Temporary> selectByOfflineId(@Param("offlineId") Integer offlineId);

    // 删除   父类ID
    int delteOfflineListByOfflineId(@Param("offlineIds") Long[] offlineIds, @Param("dataState") Integer dataState);
}